package me.zhengjie.pojo.export;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import me.zhengjie.util.ruoyiexcel.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/7/15 14:00
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ExamExport",description = "考试信息导入导出模板")
public class ExamExport {

    @ApiModelProperty(value = "考试名称")
    @Excel(name = "考试名称")
    private String nameCn;

    @ApiModelProperty(value = "地点")
    @Excel(name = "地点")
    private String address;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间",dateFormat = "yyyy-MM-dd HH:mm:ss",isCovert = false)
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间",dateFormat = "yyyy-MM-dd HH:mm:ss",isCovert = false)
    private Date endTime;

    @ApiModelProperty(value = "状态(0：正常，1：结束)")
    @Excel(name = "状态(正常或结束)",readConverterExp = "0=正常,1=结束")
    private String status;

    @ApiModelProperty(value = "本次监考老师人数")
    @Excel(name = "本次监考人数")
    private Integer teacherCount;

}
